#pragma once

#include <iostream>
#include <string>
#include <functional>
#include "Log.hpp"

using namespace LogModule;

void MySql(std::string name)
{
    LOG(LogLevel::DEBUG) << "我是一个数据任务, 我正在被执行" << "[" << name << "]";
}

void UpLoad(std::string name)
{
    LOG(LogLevel::DEBUG) << "我是一个上传任务, 我正在被执行" << "[" << name << "]";
}

void DownLoad(std::string name)
{
    LOG(LogLevel::DEBUG) << "我是一个下载任务, 我正在被执行" << "[" << name << "]";
}

using task_t = std::function<void(std::string name)>;
std::vector<task_t> tasks;